home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-06-22 | 1.1 KB | 31 lines | [TEXT/MPS ] |
- # BattMonitor - A PowerBook voltage monitoring utility.
- # By Christian Russ @ MacHack 1992
-
- # BattMonitor consists of a queue of 1000 values sampled from the
- # Power Manager at 10 samples/second. There is a seconary queue that
- # receives values at 1 sample/second. By displaying either queue and
- # by allowing sample down values of 1,2,3, and 4, BattMonitor will show
- # the “Voltage History” of your battery within a PowerBook 100, 140, or
- # 170.
-
- # There are two menu entries labeled 'Voltage' and '∂V/∂t'. The former
- # will show the voltage history and the latter will show the first derivate.
-
- # Features not implemented:
- # • Horizontal scale to better show rate of decay
- # • Estimate of time remaining given current decay curve
- # • Gestalt call to prevent crash on NON-Power Manager machines
- # • Auto-Squirrel recharging system.
-
- # to compile, hilight the following and press 'enter'
-
- c "xxx:GetVoltage.c"
- pascal "xxx:batt monitor.p"
- link "xxx:batt monitor.p.o" -c Batø -d xxx:GetVoltage.c.o ∂
- {Libraries}Runtime.o {pLibraries}PasLib.o ∂
- {Libraries}Interface.o -o xxx:BattMonitor
-
- xxx:battmonitor
-
-
- # Enjoy